package com.ys.作业;

/**
 * 描述:
 * 抽象类是一个特殊的类:
 *    拥有类的所有特性,除了加了一个抽象方法.
 * @author CodeYang
 * @version 2020/12/24 14:39
 */
public class Animal<T> {
    private String name;
    private String color;
    private String type;

    public Animal() {
    }

    public Animal(String name, String color, String type) {
        this.name = name;
        this.color = color;
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }


}
